<?php

/**
 * @Author: wuchenge
 * @Date:   2022-03-25 15:44:08
 * @Email: ligui0506@126.com
 * @Descript:
 */
Route::middleware([
    'api',
])
    ->group(function () {
        // 热门搜索标签
        Route::get('hots', 'IndexController@hots')->name('hots');

        // 详情页
        Route::get('detail/{id}', 'IndexController@detail')->name('detail')->where(['id' => '[0-9]+']);;

        // 所有的标签
        Route::get('labels', 'IndexController@labels')->name('labels');

        // 列表
        Route::get('lists', 'IndexController@lists')->name('lists');
    });
